home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / hold me in your arms / Nexus / nexus.software / lynx.local-edit < prev    next >
Internet Message Format  |  1994-05-22  |  2KB

  1. From: mac18@cus.cam.ac.uk (Sparky)
  2. Subject: WWW Solution
  3. To: nexus-gaia@netcom.com (Nexus Gaia)
  4. Date: Tue, 10 May 1994 04:14:49 +0100 (BST)
  5.  
  6.     Yes goddit! Figured out a way to do local editing and pass it to the
  7. server from _any_ account for the bulletin board. You may be interested
  8. in this Dave for letting people edit files to be included in pages using
  9. a decent local editor on their machine...
  10.  
  11.     You use a version of lynx compiled to excute commands (easily
  12. done from a nexus ftp site). Then make a page as follows...
  13.  
  14.     ...
  15.    <a href="lynexec:edit_article.sh">Edit reply to article</a>
  16.    <a href="file://localhost/home/mac18/.wwwboard_article.html">Post reply</a>
  17.     ...
  18.  
  19.    edit_article.sh :
  20.  
  21.     #!/bin/sh
  22.     $EDITOR /tmp/article.$$
  23.     cat header html and /tmp/article$$ as hidden data in a form
  24.     with the submit button saying Post it to .wwwboard_article.html
  25.     rm /tmp/article.$$
  26.  
  27.     Simple as that. The orgional page has to be created using a CGI script
  28. so that you can insert the users home path, but thats easy enough to write
  29. (this would be something they would have to specify in a signup configuration
  30. thing).
  31.  
  32.     The post it button submits the form back to the server with the file
  33. included as hidden data! Ive tried the linking and it works - haven't tried
  34. the form but I can't see that would be a problem (unless theres a size
  35. limit). Ill try and get a working demo up to see if it all really does work.
  36. Phew, thats one solved I hope.
  37.  
  38. -Mark
  39.  
  40. -- 
  41. _   /\/|  _   _   /  _  Email:  mac18@cus.cam.ac.uk        IRC: Brandoch
  42.    /   |_( /_/ '_/7     SnailMail: 363 Kings College, Cambridge, England 
  43. Mark Cheverton     \_)  Battle PBeM: finger battle@cygnus.cp.tn.tudelft.nl
  44. Electronic Cafe: http://www.cp.tn.tudelft.nl/~battle/mark/ecafe/ecafe.html
  45.  
  46.